package com.wrater.zero.models.checkType.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.wrater.zero.common.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import com.wrater.zero.models.checkReportTemplate.entity.CheckReportTemplate;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.wrater.zero.models.checkType.entity.CheckType;
import com.wrater.zero.common.base.vo.BaseForm;
import org.springframework.beans.BeanUtils;

/**
 * @Package: com.wrater.zero.models.checkType.entity
 * @Description: <检查化验单分类VO>
 * @Author: qiaoxs
 * @CreateDate: 2021-04-07
 * @UpdateUser: qiaoxs
 * @UpdateDate: 2021-04-07
 * @UpdateRemark: <>
 * @Version: 1.0
 */
@Data
@ApiModel(value = "检查化验单分类实体")
public class CheckTypeVO extends BaseForm<CheckTypeVO, CheckType> {

private static final long serialVersionUID = 7824856176661102991L;

    @JsonIgnore
    @ApiModelProperty(value = "分类主键")
    private String checkTypeId;
    @ApiModelProperty(value = "分类名称")
    private String checkTypeName;
    @ApiModelProperty(value = "报告分类（报告检查inspection_report，化验单Laboratory_sheet，超声检验单ultrasonic_sheet）")
    private String reportType;
    @JsonIgnore
    @ApiModelProperty(value = "分类排序")
    private Integer sequence;



    private List<CheckReportTemplate> checkReportTemplateList;

    /**
     * 返回vo对应实体类
     * @return
     */
    @Override
    public CheckType buildEntity() {
        CheckType entity = new CheckType();
        BeanUtils.copyProperties(this, entity);
        return entity;
    }
}